package com.haidechizi.util.lock.event;

import com.haidechizi.util.lock.annotation.Lock;
import org.aspectj.lang.ProceedingJoinPoint;

import java.util.EventListener;

/**
 * @author: wangdejun
 * @create: 2019-12-10 20:39
 **/
public interface LockListener extends EventListener {

    /**
     * 锁定之前
     *
     * @param lockContext
     */
    void beforeLock(LockContext lockContext);

    /**
     * 解锁之后
     * @param lockContext
     * @param throwable
     */
    void afterLock(LockContext lockContext, Throwable throwable);
}
